package com.java.test;

public class OutClass {
    public static void main(String[] args) {
        OutClass outClass = new OutClass();
        outClass.outPrint(1);

    }
    private int age = 12;
    public void outPrint(final int x) {
        class InClass {
            public void inPrint() {
                System.out.println(x);
                System.out.println(age);
            }
        }
        new InClass().inPrint();
    }
}
